home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d17 / setprint.arc / SETPRINT.BAT < prev    next >
DOS Batch File  |  1988-02-29  |  1KB  |  51 lines

  1. echo off
  2. if "%1" == "" goto HELP
  3. echo Setting Printer Options:
  4. goto %1        Rem - Go Execute Proper Command
  5. :HELP
  6. cls
  7. echo The Following Printer Commands Are Available:
  8. echo .
  9. echo WIDE  - Double Width     COND  - Condensed Mode
  10. echo ULON  - Underline On     ULOFF - Underline Off
  11. echo BOLD  - Double Strike    CORR  - Correspondance Mode
  12. echo DATA  - Data Proc Mode   ELITE - Elite Mode
  13. echo RESET - Resets Printer   PAGE  - Page Feed
  14. echo .
  15. echo Enter: %0 command1 command2 . . . commandN
  16. goto END
  17. :WIDE
  18. echo {a-31}   > lpt1
  19. goto SPEAK
  20. :COND
  21. echo {a-29}   > lpt1
  22. goto SPEAK
  23. :ULON
  24. echo {esc}{C} > lpt1
  25. goto SPEAK
  26. :ULOFF
  27. echo {esc}{D} > lpt1
  28. goto SPEAK
  29. :BOLD
  30. echo {esc}{T} > lpt1
  31. goto SPEAK
  32. :DATA
  33. echo {esc}{0} > lpt1
  34. goto SPEAK
  35. :CORR
  36. echo {esc}{1} > lpt1
  37. goto SPEAK
  38. :ELITE
  39. ECHO {a-28}   > lpt1
  40. goto SPEAK
  41. :RESET
  42. echo {a-24}   > lpt1
  43. goto SPEAK
  44. :PAGE
  45. echo {a-12}   > lpt1
  46. :SPEAK                 Rem - Prompt User
  47. echo . "%1" Sent To Printer
  48. shift                  Rem - Shift to Next DOS Parameter
  49. if not "%1" == "" goto %1  Rem - Execute Next Command in
  50.    Parameter List
  51. :END